import { Injectable } from '@angular/core';

@Injectable()
export class BtDataService {

    constructor(public http) {

    }

    //今日赛事
    getTodayGroupLeagueMatchList(){
        return this.http.sportDataPost('/sportdata/f',{"apiName": "getBkTodayGroupLeagueMatchList"});
    }

    //热门赛事-简单列表
    getBkHotLeagueList(){
        return this.http.sportDataPost('/sportdata/f',{"apiName": "getBkHotLeagueList"});
    }

    //获取赛事国家列表
    getBkCountryList(code){
        return this.http.sportDataPost('/sportdata/f',{"apiName":"getBkCountryList","areaCode":code,"pageNo":1,"pageSize":1000});
    }

    //获取联赛信息
    getBkLeagueList(code,pageNo,countryId?){
        return this.http.sportDataPost('/sportdata/f',{"apiName":"getBkLeagueList","areaCode":code,"countryId":countryId,"pageNo":1,"pageSize":20});
    }

}
